package com.hzcc.hzccblog.module.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author 早睡蛋
 * @Date 2022/7/19 10:37:37
 * @Desc:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "article_draft")
public class ArticleDraft {

    @ApiModelProperty(value = "主键id")
    @TableId(type = IdType.INPUT,value = "id")
    private String id;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private String createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private String updateTime;

    @ApiModelProperty(value = "标题")
    @TableId("d_title")
    private String dTitle;

    @ApiModelProperty(value = "概要")
    @TableField("d_summary")
    private String dSummary;

    @ApiModelProperty(value = "内容")
    @TableField("d_content")
    private String dContent;

    @ApiModelProperty(value = "状态 0:正常 1:锁定")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "作者")
    @TableField("d_writer")
    private String dWriter;

    @ApiModelProperty(value = "标签")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "作者id")
    @TableField("u_id")
    private String uId;

}
